import { initGlobalApi } from "./global-api/index";
import { initMixin } from "./init";
import { stateMixin } from "./initState";
import { lifecycleMixin } from "./lifecycle";
import { renderMixin } from "./vnode/index";

function Vue (options) {
  console.log('欢迎进入Vue')
  
  // 初始化
  this._init(options);
}

initMixin(Vue);
// 创建生命周期
lifecycleMixin(Vue)
// 添加_render
renderMixin(Vue)
// 添加$nextTick
stateMixin(Vue)


// 初始化全局方法 mixins extend component use
initGlobalApi(Vue);

export default Vue